vulkan: Handle VK_ERROR_UNKNOWN
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 11 Feb 2020 14:07:43 +0000 (14:07 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 11 Feb 2020 14:47:22 +0000 (14:47 +0000)
A newly added Vulkan 1.2 error.

gdk/gdkvulkancontext.c

index 5582afeb92224247320f413397aa409039571579..76f120b76af86967e03c381adbee883f6c530a48 100644 (file)
@@ -205,7 +205,10 @@ gdk_vulkan_strerror (VkResult result)
     case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:
       return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT failed as it did not have exlusive full-screen access.";
 #endif
-
+#if VK_HEADER_VERSION >= 131
+    case VK_ERROR_UNKNOWN:
+      return "An unknown error has occurred; either the application has provided invalid input, or an implementation failure has occurred.";
+#endif
     case VK_RESULT_RANGE_SIZE:
     case VK_RESULT_MAX_ENUM:
     default: